From 69d345b334c7a3fecdb0cd5f440fabd83a755309 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Sat, 18 Feb 2023 15:25:29 +0100
Subject: .

---
 src/routes/[lang=lang]/sections/products.svelte | 28 +++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 src/routes/[lang=lang]/sections/products.svelte

(limited to 'src/routes/[lang=lang]/sections/products.svelte')

diff --git a/src/routes/[lang=lang]/sections/products.svelte b/src/routes/[lang=lang]/sections/products.svelte
new file mode 100644
index 0000000..4e10b6f
--- /dev/null
+++ b/src/routes/[lang=lang]/sections/products.svelte
@@ -0,0 +1,28 @@
+<script context="module" lang="ts">
+	export type ProductsModel = {
+		products: ProductModel[];
+	};
+
+	export type ProductModel = {
+		title: string;
+		duration: string;
+		cost: string;
+		description: string;
+		orderLink: string;
+	};
+</script>
+
+<script lang="ts">
+	export let model: ProductsModel;
+
+	let visible = true;
+	$: if (!model.products || !model.products.length) {
+		visible = false;
+	} else {
+		visible = true;
+	}
+</script>
+
+{#if visible}
+    
+{/if}
\ No newline at end of file
-- 
cgit v1.3

